
include_directories (
  ${CONTROLLERS_INCLUDE_DIR}
  ${SCENARIOENGINE_INCLUDE_DIRS}
  ${ROADMANAGER_INCLUDE_DIR}
  ${COMMON_MINI_INCLUDE_DIR}
  ${SUMO_INCLUDE_DIR}  
)

file(GLOB CONTROLLERS_SOURCES
    "*.cpp"
)

file(GLOB CONTROLLERS_INCLUDES
    "*.hpp"
)

if (NOT USE_SUMO)
    list(REMOVE_ITEM CONTROLLERS_SOURCES "${CMAKE_CURRENT_LIST_DIR}/ControllerSumo.cpp")
    list(REMOVE_ITEM CONTROLLERS_INCLUDES "${CMAKE_CURRENT_LIST_DIR}/ControllerSumo.hpp")
endif (NOT USE_SUMO)

add_library ( Controllers STATIC ${CONTROLLERS_SOURCES} ${CONTROLLERS_INCLUDES} )
